<?php
/**
 * tvb log Levels
	This table is ordered by highest priority (TVB_LOG_ERROR) to lowest priority (TVB_LOG_DEBUG).
	TVB_LOG_ERROR 		error() 		Error conditions
	TVB_LOG_WARNING 	warning() 	Warning conditions
	TVB_LOG_INFO 		info() 		Informational
	TVB_LOG_DEBUG 		debug() 	Debug-level messages
 * @author William Hu <william.hu@achievo.com>
 * @version 1.0
 * @package TVBLog
 */
class TVB_Logger_Level
{
    const ERROR   = 1;  // Error: error conditions
    const WARN    = 2;  // Warning: warning conditions
    const INFO    = 3;  // Informational: informational messages
    const DEBUG   = 4;  // Debug: debug messages

	/**
     * get level.
     *
     * @return array
     */			
	public static function info()
	{
		$r = new ReflectionClass('TVB_Logger_Level');
		$result = array_flip($r->getConstants());
		return $result;
	}
}